package com.haodai.vip.tomcat.server.controller;

import com.haodai.vip.tomcat.server.*;

import java.io.File;
import java.util.List;

/**
 * Created by huangtao on 17/5/31.
 */
public class GetSessionController implements Servlet {

    @Override
    public void get(Request request, Response response) throws Exception {
        HttpSession session = request.getSession(response);
        Object name = session.get("name");
        response.write("欢迎您，"+name);
    }

    @Override
    public void post(Request request, Response response) throws Exception {

    }

}